﻿using System;
using System.Drawing;
using System.Runtime.InteropServices;

namespace CodeTable
{
    [Serializable]
    [ComVisible(true)]
    public class BlockEventArgs : EventArgs
    {
        public Point gridCoordinate;
        public string codeText;
        public Size codeSize;
        public bool needsRefresh = false;

        public BlockEventArgs()
        {
        }

        public BlockEventArgs(Point gridCoordinate, string codeText, Size codeSize)
        {
            this.gridCoordinate = gridCoordinate;
            this.codeText = codeText;
            this.codeSize = codeSize;
        }
    }

    [Serializable]
    [ComVisible(true)]
    public class GridEventArgs : EventArgs // HACK // TODO: remove
    {
        public System.Collections.Hashtable stringHashtable;

        public GridEventArgs()
        {
        }

        public GridEventArgs(System.Collections.Hashtable stringHashtable)
        {
            this.stringHashtable = stringHashtable;
        }
    }
}
